//
//  GTDiff.swift
//  GitOSC-Swift
//
//  Created by 李萍 on 16/3/10.
//  Copyright © 2016年 李萍. All rights reserved.
//

import UIKit
import SwiftyJSON

class GTDiff: NSObject {
    var diff: String!
    var newPath: String!
    var oldPath: String!
    
    var isNewFile: Bool!
    var isRenamedFile: Bool!
    var isDeletedFile: Bool!
    var fileType: String!
    
    init(json:JSON) {
        diff = json["diff"].stringValue
        newPath = json["new_path"].stringValue
        oldPath = json["old_path"].stringValue
        
        isNewFile = json["new_file"].boolValue
        isRenamedFile = json["renamed_file"].boolValue
        isDeletedFile = json["deleted_file"].boolValue
        fileType = json["type"].stringValue
    }
}
